<extend name="Layout/ins_popup" />
<block name="content">
	<div class="popup-header ">
		<div class="pull-left">
			<h1>{$vo.name}</h1>
		</div>
		<div class="pull-right">
			<notempty name="prev">
				<a onclick="prev();" class="btn">上一个</a>
			</notempty>
			<notempty name="next">
				<a onclick="next();" class="btn">下一个</a>
			</notempty>
			<a onclick="del()"class="btn btn-del">删除</a>
			<a onclick="edit();" class="btn">编辑</a>
			<a onclick="myclose();" class="btn btn-return">关闭</a>
		</div>
	</div>
	<div class="popup-body" style="height: 420px;overflow-y: auto;">
		<div class="popup-body-scroll">
			<div class="popup-content">
				<form id="form_data" name="form_data" method="post" >
					<input type="hidden" id="ajax" name="ajax" value="0">
					
						<label class="input-label" >开始:</label>
						
							{$vo.start_time|substr=0,16}
						</div>
					</div>
					
						<label class="input-label" for="name">结束:</label>
						
							{$vo.end_time|substr=0,16}
						</div>
					</div>
					
						<label class="input-label" for="meeting_room">会议室：</label>
						
							{$vo.meeting_room}
						</div>
					</div>
					
						<label class="input-label" for="tip_name">提醒*：</label>
						
							{$vo.tip_time}
						</div>
					</div>
					<div class="layui-form-item col-xs-12">
						<label class="input-label" for="name">参与人员:</label>
						
							<p class="input-static">
								{$vo.actor|show_contact}
							</p>
						</div>
					</div>
					
						
							<div class="content_wrap" >
								
								{$vo.content}
							</div>
						</div>
					</div>
					
						<label class="input-label" for="name">附件:</label>
						
							{:widget('file_upload/view',array('add_file'=>$vo['add_file']))}
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var $ = layui.jquery;
		});
		function edit() {
			parent.window.location.href = '{:url("edit","id=".$vo["id"])}';
			myclose();
		}

		function del() {
			parent.window.location.href = '{:url("del","id=".$vo["id"])}';
			myclose();
		}

		function next() {
			window.location.href = "{:url('read','id='.$next.'&list='.$list)}";
		}

		function prev() {
			window.location.href = "{:url('read','id='.$prev.'&list='.$list)}";
		}


		$("#basic_slider").on('change', function() {
			$("div.slider_box .noUi-base").css("background-color", schedule_bg($(this).val()));
		});

		$(function() {

			$("#basic_slider").noUiSlider({
				start : '{$vo.priority}' * 1,
				step : 1,
				range : {
					'min' : 1,
					'max' : 5,
				},
			});

			$("div.slider_box .noUi-base").css("background-color", schedule_bg('{$vo.priority}'));
		});

	</script>

</block>
